const Mock = require('mockjs')
let util = {
    success: function (info) {
        return {
            errcode: 0,
            info: info || ''
        }
    },
    fail(info) {
        return {
            errcode: 1,
            info: info || ''
        }
    }
}
Mock.mock('/login', (req, res) => {
    return util.success('123')
})

 
export default Mock